package com.admin.repository.mongo;

import com.admin.model.WatchHistory;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;

public interface WatchHistoryRepository extends MongoRepository<WatchHistory, String> {

    Page<WatchHistory> findByAppUserId(String appUserId, Pageable pageRequest);
    WatchHistory findByAppUserIdAndUrl(String appUserId, String url);
}
